<div class="easyui-layout" data-options="fit:true">
    <form id="editFrom" method="post">
        <input type="hidden" name="id">
        <div data-options="region:'center'">
            <div class="easyui-tabs">
                <div title="基本信息">
                    <table class="inputTable">
                        <tr>
                            <td>标题</td>
                            <td>
                                <input name="name" data-options="required:true" missingMessage="请输入标题" maxlength="10">
                                <span style="color: red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td>排序</td>
                            <td>
                                <input name="imgSort" class="easyui-numberbox"
                                       data-options="min:0,max:99999,required:true" missingMessage="请输入0-99999排序数字">
                                <span style="color: red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td>有效开始日期</td>
                            <td>
                                <input name="beginTime" class="easyui-datetimebox" required="true"
                                       missingMessage="请选择有效开始日期">
                                <span style="color: red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td>有效结束日期</td>
                            <td>
                                <input name="endTime" class="easyui-datetimebox" required="true"
                                       validType="TimeCheck['beginTime']" missingMessage="请选择有效结束日期"
                                       invalidMessage="结束日期应大于开始日期">
                                <span style="color: red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td>描述</td>
                            <!--<td><input name="description" placeholder="描述"></td>-->
                            <td>
                                <textarea name="description" style="height: 50px" class="easyui-validatebox"
                                          data-options="required:true" missingMessage="请输入描述信息"></textarea>
                                <span style="color: red;">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td>打开方式</td>
                            <td>
                                <input style="width: auto" type="radio" name="targetNew" value="0">本页</input>
                                <input style="width: auto" type="radio" name="targetNew" value="1"
                                >新窗口</input>
                            </td>
                        </tr>
                        <tr>
                            <td>链接</td>
                            <td>
                                <input name="link">
                            </td>
                        </tr>
                        <tr>
                            <td>平台类型</td>
                            <td>
                                <input style="width: auto" type="checkbox" name="showPlatformArray" value="1"
                                       checked="checked"/>PC
                                <input style="width: auto" type="checkbox" name="showPlatformArray" value="2"/>H5
                                <input style="width: auto" type="checkbox" name="showPlatformArray" value="3"/>APP
                            </td>
                        </tr>

                        <tr>
                            <td>选择图片</td>
                            <td>
                                <div id="uploader" class="wu-example">
                                    <!--用来存放文件信息-->
                                    <div class="btns">
                                        <div id="picker">选择文件</div>
                                    </div>
                                    <div id="imglist" class="uploader-list bdup" urlname="imgUrl"></div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </form>
    <div data-options="region:'south',border:false" style="text-align:right;padding:5px">
        <a class="easyui-linkbutton update" data-options="iconCls:'fa fa-save'" href="javascript:;"
           style="width:80px">更新</a>
        <a class="easyui-linkbutton" data-options="iconCls:'fa fa-close '" href="javascript:;"
           onclick="javascript:$('#win').window('close')" style="width:80px">取消</a>
    </div>
</div>
<script type="text/javascript" src="/static/webuploader-0.1.5/bdup.js"></script>
<script>
    var option = {
        imgList: "#imglist", pick: {id: "#picker", multiple: false}, inputName: "imgUrl"
    };
    bdup(option);

</script>
